







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Performs the specified action on each item in a collection.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static void ForEach<T>( IEnumerable<T> collection, Action<T> action ) |
Visual Basic (Declaration) |
---|
Public Shared Sub ForEach(Of T) ( _ collection As IEnumerable(Of T), _ action As Action(Of T) _ ) |
Visual C++ |
---|
public: generic<typename T> static void ForEach ( IEnumerable<T>^ collection, Action<T>^ action ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
The collection to process.
- action
- Action<(Of <T>)>
An Action delegate which is invoked for each item in collection.
Type Parameters
- T
See Also
Algorithms Class
Wintellect.PowerCollections Namespace